package com.example.room.user

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "user")
data class User(
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,
    var account: String,
    var password: String,
    var xingming: String,
    var banji: String,
    var number: String
) {

    override fun toString(): String {
        return "User(id=$id, account='$account', password='$password')"
    }
}